package com.ydy.remote.wechat.vo.message;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * 
 * <xml> <ToUserName><![CDATA[toUser]]></ToUserName>
 * <FromUserName><![CDATA[fromUser]]></FromUserName>
 * <CreateTime>1348831860</CreateTime> <MsgType><![CDATA[text]]></MsgType>
 * <Content><![CDATA[this is a test]]></Content> <MsgId>1234567890123456</MsgId>
 * </xml>
 * 
 * @author Wellson
 *
 */
@XmlRootElement(name = "xml")
public class BaseMessage {
	@XmlElement(name = "ToUserName", nillable = true)
	private String toUserName;
	@XmlElement(name = "FromUserName", nillable = true)
	private String fromUserName;
	@XmlElement(name = "CreateTime", nillable = true)
	private Long createTime;
	@XmlElement(name = "MsgType", nillable = true)
	private String msgType;
	@XmlElement(name = "MsgId", nillable = true)
	private Long msgId;

	@XmlTransient
	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	@XmlTransient
	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	@XmlTransient
	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	@XmlTransient
	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	@XmlTransient
	public Long getMsgId() {
		return msgId;
	}

	public void setMsgId(Long msgId) {
		this.msgId = msgId;
	}

}
